import React, { memo } from "react";

import "./index.scss";
import { getSizeImage } from "@/utils/format-utils";

const WYRadioRecommendCover = memo(function (props) {
  const { info } = props;
  return (
    <div className="wy-radio-rec-cover">
      <a href="/#">
        <img src={getSizeImage(info.picUrl, 200)} alt="" />
      </a>
      <a href="/#" className="text-nowrap name">
        {info.name}
      </a>
      <p className="text-nowrap">{info.rcmdtext}</p>
    </div>
  );
});

export default WYRadioRecommendCover;
